package com.wetool.wechat.jpa;

import com.wetool.wechat.entity.WechatAccountRelation;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface WechatAccountRelationRepo extends JpaRepository<WechatAccountRelation, String> {

    WechatAccountRelation findByOpenPlatformOpenId(String openPlatformOpenId);

    WechatAccountRelation findByOfficialOpenId(String officialOpenId);

    WechatAccountRelation findByUserId(Long userId);

    WechatAccountRelation findByTicket(String ticket);

}
